package com.openess.bigsearch.engine.utils;

public class Node<E> {
	private E data;

	private Node<E> next;

	public Node(E data, Node<E> next) {
		this.data = data;
		this.next = next;
	}

	public Node(E data) {
		this(data, null);
	}

	public Node() {
		this(null, null);
	}

	public final E getData() {
		return data;
	}

	public final Node<E> getNext() {
		return next;
	}

	public final void setData(E data) {
		this.data = data;
	}

	public final void setNext(Node<E> next) {
		this.next = next;
	}
}
